package com.ieng.kican.modules.security.config.properties;

import com.ieng.kican.common.groups.captcha.domain.CaptchaAttrs;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.time.Duration;

@Component
@ConfigurationProperties(prefix = "login")
public class LoginProperties extends CaptchaAttrs {
    private String sessionName;
    private Duration expiredTime;
    private Boolean isSingle;

    public String getSessionName() {
        return sessionName;
    }

    public void setSessionName(String sessionName) {
        this.sessionName = sessionName;
    }

    public Duration getExpiredTime() {
        return expiredTime;
    }

    public void setExpiredTime(Duration expiredTime) {
        this.expiredTime = expiredTime;
    }

    public Boolean getSingle() {
        return isSingle;
    }

    public void setSingle(Boolean single) {
        isSingle = single;
    }
}
